import request from '@/router/axios';
export function deptdepts() { //城市
  return request({
    url: '/api/xmbz-system/dept/depts',
    method: 'get',
  })
}

export const getChannelList = (query) => { // 渠道列表接口
  return request({
    url: '/api/xmbz-order/order/getChannelList',
    method: 'get',
    params: query
  })
}
export const getExcelShowData = (query) => { // 导表数据
  return request({
    url: '/api/xmbz-statistics/orderStatistics/getExcelShowData',
    method: 'get',
    params: query
  })
}
export const getReminderType = (query) => { // 催单
  return request({
    url: '/api/xmbz-statistics/orderStatistics/getReminderType',
    method: 'get',
    params: query
  })
}
export const downLoadExcel = (query) => { // 催单
  return request({
    url: '/api/xmbz-statistics/orderStatistics/downLoadExcel',
    method: 'get',
    params: query
  })
}
export const getDeliveryExcelData = (query) => { // 配送
  return request({
    url: '/api/xmbz-statistics/orderStatistics/getDeliveryExcelData',
    method: 'get',
    params: query
  })
}

export const getServiceExcelData = (query) => { // 获取客服确认报表的数据
  return request({
    url: '/api/xmbz-statistics/orderStatistics/getServiceExcelData',
    method: 'get',
    params: query
  })
}
export const getWarehousesByDeptIds = (query) => { //根据组织架构ids，查询所有仓库信息（前端传城市id）_open 接口
  return request({
    url: '/api/xmbz-order/warehouse/open/getWarehousesByDeptIds',
    method: 'get',
   params: query
  })
}
export const getHeatMap = (data) => { // 热点图数据
  return request({
    url: '/api/xmbz-statistics/mapStatistics/getHeatMap',
    method: 'post',
    data
  })
}
